<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
	<title>CSS 2D转换</title>
    <script src="./prefixfree.js"></script>
	<style>
		body {
			margin: 0;
			padding: 0;
			background-color: #F7F7F7;
		}
		
		.rotate {
			width: 200px;
			height: 200px;
			margin: 60px auto;
			background-color: green;
			transform: rotate(30deg);
			transition: all 1s;
		}
		
		.rotate:hover {
			/*
				 正值 顺时针方向
				 负值，逆时针方向.
			*/
			 transform: rotate(120deg);
		}
	</style>
</head>

<body>
	<div class="rotate"></div>
</body>

</html>